package com.example.代理模式.CGLIB动态代理;

/**
 * cglib动态代理 test
 */
public class MainClient {

    public static void main(String[] args) {
        DynamicProxy dynamicProxy = new DynamicProxy();
        BuyCosmetics watsons = (Watsons)dynamicProxy.getProxy(Watsons.class);

        watsons.shop();
        System.out.println(watsons.getClass().getName());
    }
}
